
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class YlfxComponentViewmodel extends ViewModel {
    public bindingPath = '/jmsmds/ylfxs';
    // farrisDataGrid列集合定义 在对应component中赋值
    public dataGrid_ylfxColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "dataGrid_ylfx": {
    "type": "DataGrid",
    "resourceId": "dataGrid_ylfx",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "dataGrid_ylfx",
    "size": {},
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "mdyye_eb1f18a6_6q17",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdyye_eb1f18a6_6q17",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdyye",
          "fullPath": "mdyye",
          "isExpression": false,
          "value": "mdyye"
        },
        "dataField": "mdyye",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店营业额",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "mdyye_eb1f18a6_nm4v",
          "defaultI18nValue": "门店营业额",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "mdyye_eb1f18a6_nm4v",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "mdyye",
            "isExpression": false,
            "value": "mdyye"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdcb_1509d61a_0ews",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdcb_1509d61a_0ews",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdcb",
          "fullPath": "mdcb",
          "isExpression": false,
          "value": "mdcb"
        },
        "dataField": "mdcb",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店成本",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "mdcb_1509d61a_tm8e",
          "defaultI18nValue": "门店成本",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "mdcb_1509d61a_tm8e",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "mdcb",
            "isExpression": false,
            "value": "mdcb"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdlr_88b6d257_7zkn",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdlr_88b6d257_7zkn",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdlr",
          "fullPath": "mdlr",
          "isExpression": false,
          "value": "mdlr"
        },
        "dataField": "mdlr",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店利润",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "mdlr_88b6d257_359s",
          "defaultI18nValue": "门店利润",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "mdlr_88b6d257_359s",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "mdlr",
            "isExpression": false,
            "value": "mdlr"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdylr_35be6172_07ue",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdylr_35be6172_07ue",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdylr",
          "fullPath": "mdylr",
          "isExpression": false,
          "value": "mdylr"
        },
        "dataField": "mdylr",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店月利润",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "mdylr_35be6172_0ond",
          "defaultI18nValue": "门店月利润",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "mdylr_35be6172_0ond",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "mdylr",
            "isExpression": false,
            "value": "mdylr"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "mdnlr_b775486b_wv24",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "mdnlr_b775486b_wv24",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "mdnlr",
          "fullPath": "mdnlr",
          "isExpression": false,
          "value": "mdnlr"
        },
        "dataField": "mdnlr",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "门店年利润",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "mdnlr_b775486b_9giw",
          "defaultI18nValue": "门店年利润",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "mdnlr_b775486b_9giw",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "mdnlr",
            "isExpression": false,
            "value": "mdnlr"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "resizeable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "editable": "viewModel.stateMachine['editable']",
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'ylfxAddItem1',
        params: {
        }
    })
    public ylfxAddItem1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'ylfxRemoveItem1',
        params: {
            id: '{DATA~/#{ylfx-component/jmsmds}/ylfxs/id}'
        },
        paramDescriptions: {
            id: { type: 'string' }
        }
    })
    public ylfxRemoveItem1(commandParam?: any): Observable<any> { return; }

}